 <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="<?=site_url()?>">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">商铺管理</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="<?=site_url('shops/index')?>" method="get">
                    <table class="search-tab">
                        <tr>
                            <th width="100">搜索店铺:</th>
                            <td><input class="common-text" placeholder="请输入店铺名称" name="keywords" value="<?=empty($_GET['keywords']) ? '' : $_GET['keywords'];?>" id="" type="text"></td>
                            <td><input class="btn btn-primary btn2" value="查询" type="submit"></td>
                            <td><a class="btn btn-primary btn2" href="<?=site_url('shops')?>">重置</a></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="<?=site_url('shops/create')?>"><i class="icon-font"></i>新增商铺</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th>ID</th>
                            <th>商铺ID</th>
                            <th>商铺名称</th>
                            <th width="200px">缴费金额</th>
                            <th>所属用户</th>
                            <th>到期时间</th>
                            <th>更新时间</th>
                            <th>操作</th>
                        </tr>

                        <?php foreach($list as $k => $v): ?>
                        <tr>
                            <td><?=$v['id']?></td>
                            <td><?=$v['shops_id']?></td>
                            <td><a href="<?=$v['url']?>" target="_blank"><?=$v['name']?></a></td>
                            <td><?=$v['income']?></td>
                            <td><?=$v['users']['user_name']?>##<?=$v['users']['username']?></td>
                            <td><?=date('Y-m-d',$v['end_time'])?></td>
                            <td><?=date('Y-m-d H:i:s',$v['s_time'])?></td>
                            <td>
                                <a class="link-update" href="<?=site_url('shops/update?sid='.$v['shops_id'])?>">修改</a>
                                <a class="link-del" href="javascript:get_info(<?=$v['shops_id']?>);">查看详情</a>
                            </td>
                        </tr>
                        <?php endforeach;?>
                        
                    </table>
                    <div class="list-page"><?=$page?></div>
                </div>
            </form>
        </div>
<script type="text/javascript">
    
    function get_info(sid){
        layer.open({
            type: 2,
            title: '分配详情',
            shadeClose: true,
            shade: 0.8,
            area: ['50%', '50%'],
            content: "<?=site_url('bull/shops_bull')?>?sid="+sid //iframe的url
        }); 
    }
</script>